﻿#ifndef MYLISTWIDGET_H
#define MYLISTWIDGET_H

#include <QListWidget>
#include <QObject>
#include <QMouseEvent>
#include <QDropEvent>
#include <QMimeData>
#include <QDrag>
#include <QListWidgetItem>
#include <QDebug>
#include <QEvent>

class myListWidget : public QListWidget
{
    Q_OBJECT
public:
    myListWidget(QWidget* parent = nullptr);
private:

    void mouseReleaseEvent(QMouseEvent* event);


signals:
    void drop(int index,QPoint pos);
private:
    int index;


};

#endif // MYLISTWIDGET_H
